<body class="app bw" data-ad="true">

<section class="app-content">
	<section class="page page-index noline" data-plugin-type="info_front">
        <div class="top-bar">领取代金券</div>

        <h1 class="voucher-tit"><?php echo $this->message;?></h1>
        <?php 
			if (!empty($voucher)) {?>
        <table class="b-des-table v-des-table">
            <thead>
                <th class="t01">券名</th>
                <th class="t02"><?php echo $this->escapeHtml($voucher['vt_name']);?></th>
            </thead>
            
            <tbody>
                <tr><td>适用商户</td><td><?php 
if (empty($voucher['org_name'])) {
 	echo '全品类';
} else {	
	echo $this->escapeHtml($voucher['org_name']);
}
?></td></tr>
                <tr><td>适用商品</td><td><?php 
if (empty($voucher['product_name'])) {
 	echo '全品类';
} else {	
	echo $this->escapeHtml($voucher['product_name']);
}
?></td></tr>
                <tr><td>最低限额</td><td>满<?php echo $this->escapeHtml($voucher['vt_limit_price']);?>可用</td></tr>
                <tr><td>使用时限</td><td><?php echo $this->escapeHtml($voucher['vt_start_time']);?>-<?php echo $this->escapeHtml($voucher['vt_end_time']);?></td></tr>
                <tr><td>详细信息</td><td><?php echo $this->escapeHtml($voucher['vt_remark']);?></td></tr>

            </tbody>
        </table>
          <?php }
		?>
        <a href="<?php echo $this->url('my', array('action'=>'voucher'));?>" class="btn-w btn-yel03" style="margin-top: 80px;"> 查看我的代金券</a>
	</section>

</section>
